
using System;
using System.IO;
using UnrealBuildTool;
using Tools.DotNETCommon;

public class ZionOneSignal : ModuleRules
{
    public ZionOneSignal(ReadOnlyTargetRules Target) : base(Target)
    {
        PCHUsage = ModuleRules.PCHUsageMode.UseExplicitOrSharedPCHs;

        PublicDependencyModuleNames.AddRange(
            new string[]
            {
                "Core",
                // ... add other public dependencies that you statically link with here ...
            }
            );


        PrivateDependencyModuleNames.AddRange(
            new string[]
            {
                "CoreUObject",
                "Engine",
                // ... add private dependencies that you statically link with here ...	
            }
            );

        PrivateIncludePathModuleNames.AddRange(
		new string[] {
			"Settings",
            "Launch",
        }
        );

        // Setup platform include paths
		if (Target.Platform == UnrealTargetPlatform.IOS) {
            //string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
            //AdditionalPropertiesForReceipt.Add(new ReceiptProperty("IOSPlugin", Path.Combine(PluginPath, "ZionOneSignal_UPL_IOS.xml")));

		}
		else if(Target.Platform == UnrealTargetPlatform.Android)
		{
            string PluginPath = Utils.MakePathRelativeTo(ModuleDirectory, Target.RelativeEnginePath);
            AdditionalPropertiesForReceipt.Add("AndroidPlugin", Path.Combine(PluginPath, "ZionOneSignal_UPL_Android.xml"));
		}

        // Setup defines based on reality
        // PublicDefinitions.Add("OneSignal_APPID=########-####-####-####-############");
    }
}
